<template>
  <n-config-provider :locale="zhCN" :date-locale="dateZhCN">
    <n-message-provider>
      <PageHeader/>
      <router-view/>
    </n-message-provider>
  </n-config-provider>
</template>
<script>
import {defineComponent} from 'vue'
import PageHeader from '@/components/layout/Header'
import {zhCN, dateZhCN, NConfigProvider, NMessageProvider} from 'naive-ui'

export default defineComponent({
  name: 'App',
  components: {
    PageHeader,
    NConfigProvider,
    NMessageProvider
  },
  setup() {
    return {
      zhCN,
      dateZhCN
    }
  }
})
</script>
